<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2019/2/20
 * Time: 10:56
 * name:获取下单的人数
 * url:/erpOrder/numberOfOrdersReceived
 */

$oesid = $route->bodyParams['oesid'];
$start = $route->bodyParams['start'];
$end = $route->bodyParams['end'];

$sql = "SELECT `oo_osid` FROM `art_oa_order` WHERE `oo_oesid` = $oesid AND `oo_create_time` AND `is_delete` = 0 BETWEEN  $start AND $end  GROUP BY `oo_osid`";

$re=$db->mysqlDB->query($sql);

$rs = array("data" => $re);
////返回成功结果
$response->responseData(true, $rs);